/*
* @author suhong
* @date 2022/5/19 16:31
* @file articleList.js
* @说明  文章相关接口处理
*/
import request from "./request"
const articleApi={
    //获取某个用户的文章
    userArticle(data={}){
        return request({
            method:"GET",
            url:"/article/userArticle",
            params:data
        })
    },
    //获取文章的详情
    getArticleInfo(data={}){
        return request({
            method:"GET",
            url:'/article/getArticle',
            params:data
        })
    },
    //删除文章
    delArticle(data={}){
        return request({
            method:'DELETE',
            url:'/article/delArticle',
            params:data
        })
    },
    //首页渲染
    showHome(data={}){
      return request({
          method:'GET',
          url:'/article/showHome',
          params:data
      })  
    }
}
export default articleApi
